﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="second.aspx.cs" Inherits="GDIT.page.second" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>广东科学技术职业学院</title>
    <link href="../css/second.css" rel="stylesheet" type="text/css" />
        
</head>
<body>
<form id="form1" runat="server">
    <div class="all">
        
        <!--页头图片开始-->
        <div class="img"><div class="content"><img alt="" src="../img/second/second_img.png" /></div></div>
        <!--页头图片结束-->


        <!--导航开始-->
        <div class="guide">
            <div class="bg"></div>
        </div>

        <div class="guide">
            <div class="firstNav">
                <ul class="first">
                    <%--<asp:Repeater ID="rptFirst" runat="server">
                        <ItemTemplate>
                            <li><input type="hidden" value='<%#Eval("ID") %>' /><a href='<%#Eval("LinkAddress") %>' class="guideLink1"><%#Eval("MenuName")%></a></li>
                        </ItemTemplate>
                    </asp:Repeater>--%>
                    <li><input type="hidden" value="绑定(一级菜单id:1)" /><a href="http://www.baidu.com" class="guideLink1">学校概况</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:2)" /><a href="http://www.baidu.com" class="guideLink1">招生信息</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:3)" /><a href="http://www.baidu.com" class="guideLink1">学校概况</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:4)" /><a href="http://www.baidu.com" class="guideLink1">图书馆)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:5)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:6)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:7)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:8)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                </ul>
            </div>
            <div class="secondNav">
                <ul class="second">
                    <%--<asp:Repeater ID="rptSecond" runat="server">
                        <ItemTemplate>
                            <li><input type="hidden" value='<%#Eval("MainID") %>' /><a href='<%#Eval("LinkAddress") %>' class="guideLink1"><%#Eval("MenuName")%></a></li>
                        </ItemTemplate>
                    </asp:Repeater>--%>
                    <li><input type="hidden" value="绑定(一级菜单id:1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(哈哈哈)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(木木要)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(我爱你)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:2)" /><a href="http://www.baidu.com" class="guideLink2">绑定(好害羞)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:3)" /><a href="http://www.baidu.com" class="guideLink2">绑定(AtHome)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:3)" /><a href="http://www.baidu.com" class="guideLink2">绑定(嗯哈哈)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(不够哦)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(菜单)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(你好笨)</a></li>
                    <li><input type="hidden" value="绑定(一级菜单id:4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(链接)</a></li>
                </ul>
            </div>
        </div>

        <script type="text/javascript">
            function Ready() {
                var guideLink1s = new Array(); //一级菜单所有链接
                var guideLink2s = new Array(); //二级菜单所有链接
                var allEvents = document.getElementsByTagName("*");
                for (var i = 0; i < allEvents.length; i++) {
                    if (allEvents[i].className == "guideLink1") {
                        guideLink1s[guideLink1s.length] = allEvents[i];
                    } else if (allEvents[i].className == "guideLink2") {
                        guideLink2s[guideLink2s.length] = allEvents[i];
                    }
                }

                /*给一级菜单所有的链接付予经过事件*/
                for (var i = 0; i < guideLink1s.length; i++) {
                    guideLink1s[i].onmouseover = guideLink1_mouseover;
                }

                /*设置一级菜单的初始显示*/
                guideLink1s[0].style.background = "url(../img/second/btnGuideOver.gif) no-repeat";
                guideLink1s[0].style.color = "#fff";

                /*设置二级菜单的初始显示*/
                for (var i = 0; i < guideLink2s.length; i++) {
                    var id1 = guideLink1s[0].parentNode.getElementsByTagName("input")[0].value;
                    var id2 = guideLink2s[i].parentNode.getElementsByTagName("input")[0].value;
                    if (id1 == id2) {
                        guideLink2s[i].parentNode.style.display = "block";
                    } else {
                        guideLink2s[i].parentNode.style.display = "none";
                    }
                }

                /*设置一级菜单的ul的宽度*/
                var attribute = GetCurrentStyle(guideLink1s[0], "width");
                var width = parseInt(attribute.substring(0, attribute.length - 2), 10);
                guideLink1s[0].parentNode.parentNode.style.width = width * guideLink1s.length + "px";

                /*设置二级菜单的ul的宽度*/
                SetSecondUlWidth(guideLink2s);
            }
            Ready();

            /*一级链接的鼠标经过事件*/
            function guideLink1_mouseover() {
                var guideLink1s = new Array(); //一级菜单所有链接
                var guideLink2s = new Array(); //二级菜单所有链接
                var allEvents = document.getElementsByTagName("*");
                for (var i = 0; i < allEvents.length; i++) {
                    if (allEvents[i].className == "guideLink1") {
                        guideLink1s[guideLink1s.length] = allEvents[i];
                    } else if (allEvents[i].className == "guideLink2") {
                        guideLink2s[guideLink2s.length] = allEvents[i];
                    }
                }

                /*改变一级菜单的当前链接的状态*/
                for (var i = 0; i < guideLink1s.length; i++) {
                    guideLink1s[i].style.background = "";
                    guideLink1s[i].style.color = "#09f";
                }
                this.style.background = "url(../img/second/btnGuideOver.gif) no-repeat";
                this.style.color = "#fff";

                /*控制二级菜单的显示与否*/
                for (var i = 0; i < guideLink2s.length; i++) {
                    if (GetId(this) == GetId(guideLink2s[i])) {
                        guideLink2s[i].parentNode.style.display = "block";
                    } else {
                        guideLink2s[i].parentNode.style.display = "none";
                    }
                }

                /*设置二级菜单的ul的宽度*/
                SetSecondUlWidth(guideLink2s);
            }

            /*获取隐藏的id*/
            function GetId(guideLink) {
                return guideLink.parentNode.getElementsByTagName("input")[0].value;
            }

            /*获取标签的样式*/
            function GetCurrentStyle(obj, attribute) {
                return obj.currentStyle ? obj.currentStyle[attribute] : document.defaultView.getComputedStyle(obj, false)[attribute];
            }

            /*设置二级菜单的ul的宽度*/
            function SetSecondUlWidth(guideLink2s) {
                var lis = new Array();
                for (var i = 0; i < guideLink2s.length; i++) {
                    if (guideLink2s[i].parentNode.style.display == "block") {
                        lis[lis.length] = guideLink2s[i].parentNode;
                    }
                }
                var attribute = GetCurrentStyle(guideLink2s[0], "width");
                var width = parseInt(attribute.substring(0, attribute.length - 2), 10);
                guideLink2s[0].parentNode.parentNode.style.width = width * lis.length + "px";
            }
        </script>

        <!--导航结束-->


        <!--站点地图开始-->
        <div class="map">
            <div class="content">
                <span id="mapLink1"><!-- <a href="../index.htm">首页</a> > 学校概况--></span>
            </div>
        </div>
        <!--站点地图结束-->

        <div class="content">
            <div class="xcontent">

                <!--左侧菜单开始-->
                <div class="navigate">
                    <iframe id="iframe_left" name="left_iframe" frameborder="0" scrolling="no" src="general/left.aspx" onload="this.height = this.contentWindow.document.documentElement.scrollHeight;"></iframe>
                </div>
                <!--左侧菜单结束-->

                <!--右侧内容开始-->
                <div class="details">
                    <iframe id="iframe_content" name="details_iframe" frameborder="0" scrolling="no" src="general/introduction.aspx" onload="this.height = this.contentWindow.document.documentElement.scrollHeight;"></iframe>
                </div>
                <!--右侧内容结束-->
            </div>
        </div>

        <!--页面加载完成后处理链接开始-->
        <asp:HiddenField ID="hdfParm" runat="server" Value="notice_list" />
        <script type="text/javascript">
            var parm = document.getElementById("hdfParm");
            var parms = parm.value.split("_");
            var iframeLeft = document.getElementsByName("left_iframe")[0];
            var iframeSon = document.getElementsByName("details_iframe")[0];
            iframeLeft.src = "left.aspx?parm=" + parms[0];
            if (parms.length >= 2) {
                iframeSon.src = parms[1] + ".aspx";
            }else if (parms.length >= 3) {
                iframeSon.src = parms[1] + ".aspx?parm=" + parms[2];
            }else if (parms.length >= 4) {
                iframeSon.src = parms[1] + ".aspx?parm=" + parms[2] + "_" + parms[3];
            }
        </script>
        <!--页面加载完成后处理链接结束-->

        <!--页脚版权开始-->
        <div class="root">
            <div class="content">
                <p>粤ICP备05008841号  广东科学技术职业学院 版权所有 Copyright© 2003-2011, All Right Reserved</p>
                <p>广州校区地址：广州市天河区科华街351号(邮编:510640) 珠海校区地址：珠海市金湾区珠海大道南侧(邮编：519090)
</p>
                <p>邮箱：webmaster@gdit.edu.cn　电话：(广州)020-85297309 (珠海)0756-7796288　传真：020-85291714</p>
            </div>
        </div>
        <!--页脚版权结束-->

    </div>



</form>
</body>
</html>
